package org.rupa.core.register;

import org.rupa.common.model.ServiceInfo;

public class DefaultRegister extends AbstractRegister {
    @Override
    public void register(ServiceInfo serviceInfo) {
        register();
        startHeartbeatDetection();
    }

    @Override
    public void unregister(ServiceInfo serviceInfo) {
        unregister();
        executorService.shutdownNow();
    }
}
